package com.loiot.baqi.utils;


import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.loiot.baqi.pojo.Tables;
import com.loiot.baqi.pojo.ZpDictionaryInfo;


public class IndexInfoSingleTon {
	private static IndexInfoSingleTon indexInfo = new IndexInfoSingleTon();

	private Map<String, List> indexInfoMap = new HashMap();
	
	/**
	 * 数据库表级字段集合
	 */
	private List<Tables> tables =new ArrayList<Tables>();

	public List<Tables> getTables() {
		return tables;
	}

	public void setTables(List<Tables> tables) {
		this.tables = tables;
	}
	
	/**
	 * 字典缓存
	 */
	private Map<String, Map<String, ZpDictionaryInfo>> dictCache = new HashMap<String, Map<String, ZpDictionaryInfo>>();

	public Map<String, List> getIndexInfoMap() {
		return indexInfoMap;
	}

	public void setIndexInfoMap(Map<String, List> indexInfoMap) {
		this.indexInfoMap = indexInfoMap;
	}

	private IndexInfoSingleTon() {

	}

	public static IndexInfoSingleTon getInstance() {
		return indexInfo;
	}

	public Map<String, Map<String, ZpDictionaryInfo>> getDictCache() {
		return dictCache;
	}

	public void setDictCache(Map<String, Map<String, ZpDictionaryInfo>> dictCache) {
		this.dictCache = dictCache;
	}
}
